package cn.sfturing.entity;

public class Area {
    //城市id
    private int id;
    //城市名称
    private String areaName;
    //父级城市id
    private int parentId;
    //城市等级
    private int level;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

	@Override
	// 在进行sout的时候，如果没有toSting方法，会打印出类对应的哈希值，有了toString就可以打印出来字符串了
	public String toString() {
		return "Area{" +
				"id=" + id +
				", areaName='" + areaName + '\'' +
				", parentId=" + parentId +
				", level=" + level +
				'}';
	}
}
